<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
function submitAndCreatNew()
{
	var fileName=document.getElementById("file").value;
	var fileId=document.getElementById("iframeId").value;
	
	var file={};
	file.name=fileName.substring(fileName.lastIndexOf("\\")+1);
	file.id=fileId;
	file.filestatus=-1;
	var tempFile=getFileInfo();
	file.size= tempFile.size;
	
	document.getElementById("encodeFileName").value=encodeURIComponent(file.name);
	window.parent.commonCreateNewFile(file); 
}
function getFileInfo(){
 	var obj_file = document.getElementById("file");
 	var file={};
 	try
 	{
 		file.size = obj_file.files[0].size;
 	}catch (e) {
	}
    return file;
}
</script>
<style type="text/css">
#file{ position:absolute;  top:0; right:0px; height:100px; filter:alpha(opacity:0);  opacity: 0; width:200px; z-index: 10 }
</style>
</head>
<body>
<form action="netDisk!executeNetDiskIframeUpload.action" id="fileForm" class="fileForm" name="form1" encType="multipart/form-data" method="post" >
	<input id="iframeId" name="iframeId" value="" style="display: none" /> 
	<input id="encodeFileName" name="encodeFileName" value="" style="display: none" /> 
	<input type="file" id="file" name="file" onchange="submitAndCreatNew(); return false;" />
	<div id="extendsParam" style="display: none"></div>
</form>
</body>
</html>
